//
//  Status.swift
//  微博Swift
//
//  Created by  justinchou on 16/2/27.
//  Copyright © 2016年  justinchou. All rights reserved.
//

import UIKit

class Status: NSObject {
    
    /// 被转发的原微博信息字段
    var retweeted_status: Status?
    /// 微博创建时间
    var created_at: String?
    /// 微博ID - 注意要设置成 Int64
    var id: Int64 = 0
    /// 微博信息内容
    var text: String?
    /// 微博来源
    var source: String?
    /// 新浪用户(模型)
    var user: User?
    /// 配图数组
    var pic_urls: [StatusPictures]?
    
    override var description: String {
    
        let keys = ["created_at", "id", "text", "source", "user", "pic_urls", "retweeted_status"]
        return dictionaryWithValuesForKeys(keys).description
    }
    
    class func modelContainerPropertyGenericClass() -> [String: AnyObject] {
        return ["pic_urls" : StatusPictures.self]
    }
}
